home *** CD-ROM | disk | FTP | other *** search
- on UpdateNarraList
- global gSourceMem, gDisplayMem, gNarraList, gNarraNumList, wColor, gAutoBack
- set lc to the number of lines in the text of member gSourceMem of castLib 2
- set lpos to lc
- repeat while (line lpos of the text of member gSourceMem of castLib 2 <> "**links**") and (lpos > 0)
- set lpos to lpos - 1
- end repeat
- set gNarraList to []
- set gNarraNumList to []
- set newNar to 1
- repeat with K = 1 to 4
- puppetSprite(1 + K, 1)
- set the memberNum of sprite (1 + K) to 71 + K
- end repeat
- if lpos then
- repeat with J = lpos to lc
- set currLine to line J of field member gSourceMem of castLib 2
- set word1 to word 1 of currLine
- set Num to value(word1)
- set wc to the number of words in currLine
- set ArticleName to word 2 to wc of currLine
- if Num then
- set onePair to [Num, ArticleName]
- add(gNarraList, onePair)
- add(gNarraNumList, Num)
- set the memberNum of sprite (1 + Num) to 10 + Num
- if newNar then
- set newNar to 0
- set the memberNum of sprite gCornerCh() to 60 + Num
- set wColor to Num
- end if
- next repeat
- end if
- if word1 = "B" then
- set gAutoBack to ArticleName
- end if
- end repeat
- else
- end if
- DisplayNewArticle(lpos)
- end
-
- on DisplayNewArticle lpos
- global gSourceMem, gDisplayMem, gFontSize, gArtTitleMem
- set lc to the number of lines in the text of member gSourceMem of castLib 2
- set EmptyMem to 50
- duplicate(member gSourceMem of castLib 2, EmptyMem)
- set the textAlign of member EmptyMem to "left"
- set the boxType of member EmptyMem to #fixed
- set the rect of member EmptyMem to rect(0, 0, 230, 300)
- set the textSize of member EmptyMem to gFontSize
- duplicate(member EmptyMem, gDisplayMem)
- if lpos then
- delete line lpos to lc of field member gDisplayMem
- end if
- put the name of field member gDisplayMem into field member gArtTitleMem
- end
-